package com.minwei.bigrichman.controller;


import com.minwei.bigrichman.pojo.param.GameStartUserInfoParam;
import com.minwei.bigrichman.result.CommonResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: <a href="xjm01611253@alibaba-inc.com">肖建民</a>
 * @date: 2024/8/9
 * @time: 16:14
 * @description:
 */
@Controller
public class GameInfoInstanceController {
    //创建开局信息
    @RequestMapping("/createGameInfo")
    public CommonResult<Boolean> createGameInfo(@RequestBody GameStartUserInfoParam gameStartUserInfoParam){
        if (gameStartUserInfoParam == null || gameStartUserInfoParam.getUserIdLIst() ==null || gameStartUserInfoParam.getUserIdLIst().isEmpty()){
            return CommonResult.fail("","");
        }
        return CommonResult.success();
    }
}
